feat: Operate website proxy config#12005
Conversation
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
拆开这个operate接口的想法很好,不过拆成两个接口operate 和 update 很容易混淆,这个接口本来就难读,虽然解决了问题但是后面开发的时候读这段挺容易迷惑的。 个人感觉如果要改最好彻底点。要么不拆接口。把dto 里的字段去掉required 标签,然后通过service代码手动判断拦截或者屏蔽来分类会不会更精简? 或者如果要拆接口,做绝一点直接一个操作一个接口来分割职责,然后每个接口用自己的规范dto。 仅本人意见,这种拆一半来解决问题的方法不是很好 |
|
delete 和 enable/disable 接口分开写会更好一些 |
* feat: Operate website proxy config * chore: Update api comment * chore: update swagger * chore: update x-log * feat: split api
* feat: Operate website proxy config * chore: Update api comment * chore: update swagger * chore: update x-log * feat: split api
What this PR does / why we need it?
当反代配置不是常规配置的情况下,会出现无法暂停、删除的问题。
这主要是接口入参校验导致的。
Summary of your change
新增一个操作接口,只传必要的值。
Please indicate you've done the following: